package cn.kgc.tangcco.kjde1020.mall.controller;

import cn.kgc.tangcco.kjde1020.mall.service.ICategoryService;
import cn.kgc.tangcco.kjde1020.mall.vo.CategoryVo;
import cn.kgc.tangcco.kjde1020.mall.vo.ResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName CategoryController 郭建宾
 * @Description: TODO
 * @Author ASUS
 * @Date 2020/2/28
 * @Version V1.0
 **/
@RestController
public class CategoryController {
    @Autowired
    private ICategoryService categoryService;
    @GetMapping("/categories")
    public ResponseVo<List<CategoryVo>>selectAll(){
        return categoryService.selectAll();
    }
}
